<?php
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

/* structure.inc */

//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function structure_openBlock($class,$title,$icon){
    if ($class=="")$class="table block";
    if ($icon=="")$icon="themes/".theme()."/images/block.png";

    echo "<div class='$class'>\n";
    createTitle($title,$title,$icon);
}

//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function structure_closeBlock(){
    echo "</div>\n";

}
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>

  <head>
	<meta name="robots" content="" >
	<meta name="generator" content="" >
	<meta name="keywords" content="" >
	<meta name="description" content="" >
	<meta name="MSSmartTagsPreventParsing" content="true" >
	<meta http-equiv="distribution" content="global" >
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
	<meta http-equiv="Resource-Type" content="document" >

    <link rel="stylesheet" type="text/css" href="themes/<?=theme();?>/theme.css" media="screen, projection" title="theme" >

    <title><?=title();?></title>

    <script type="text/javascript" src='libMain.js'></script>



<style type="text/css">

<?php if (file_exists("blocks/structure.css")){ ?>
    @import url(blocks/structure.css);
<?php }else{ ?>
    @import url(themes/<?=theme();?>/structure.css);
<?php } ?>

</style>

<?php
//supporto ahah
structure_ahahsupport();
?>
  </head>

  <body >

    <div id='container'>

      <!-- TOP -->
      <div id='top'>
        <?php structure_getlistblocks("blocks/top");?>
      </div>

      <div id='middle'>

        <!-- LEFT -->
        <div id='left'>
          <?php structure_getlistblocks("blocks/left");?>
        </div>

        <!-- RIGHT -->
        <div id='right'>
          <?php structure_getlistblocks("blocks/right");?>
        </div>

       <!-- CENTER -->
        <div id='center' <?php if(strpos(" ".$_SERVER['HTTP_USER_AGENT'],"MSIE"))echo "style=\"width: 98%; \" "; ?> >
          <?php structure_getapplication(); ?>
        </div>

      </div>

      <!-- BOTTOM -->
      <div id='bottom'>
        <?php structure_getlistblocks("blocks/bottom");?>
      </div>

    </div>

  </body>

</html>

